<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a="http://richfaces.org/a4j"
                template="layout/template.xhtml">
    <ui:define name="body">
        <h:messages globalOnly="true" styleClass="message"/>
        <h:form id="searchForm">
            <rich:panel>
                <f:facet name="header">#{messages['programgoal.filter']}</f:facet>
                <s:decorate template="layout/display.xhtml">
                    <ui:define name="label">#{messages['programgoal.language']}</ui:define>
                    <h:selectOneMenu id="language"
                                     value="#{programGoalList.programGoal.language}"
                                     var="_lang">
                        <s:selectItems var="_lang" value="#{loLanguageList}"
                                       label="#{_lang.name}"/>
                        <a:support event="onchange"/>
                        <s:convertEntity/>
                    </h:selectOneMenu>
                </s:decorate>
                <div style="clear:both"/>
            </rich:panel>
        </h:form>
        <a:outputPanel ajaxRendered="true" layout="none">
            <rich:panel>
                <f:facet name="header">#{messages['programgoal.list.label']}</f:facet>
                <h:outputText value="#{messages['programgoal.list.noprogramgoals']}"
                              rendered="#{empty programGoalList.resultList}"/>
                <rich:dataTable id="programGoalList" var="programGoal"
                                value="#{programGoalList.resultList}"
                                rendered="#{not empty programGoalList.resultList}"
                                rowClasses="rvgRowOne,rvgRowTwo">
                    <rich:column>
                        <f:facet name="header">#{messages['programgoal.number']}</f:facet>
                        <s:link id="programGoal"
                                value="#{programGoal.number}"
                                view="/programGoal.xhtml">
                            <f:param name="programGoalId"
                                     value="#{programGoal.id}"/>
                        </s:link>
                    </rich:column>
                    <rich:column>
                        <f:facet name="header">#{messages['programgoal.description']}</f:facet>
                        #{programGoal.description}
                    </rich:column>
                    <rich:column>
                        <f:facet name="header">#{messages['programgoal.language']}</f:facet>
                        #{programGoal.language.name}
                    </rich:column>
                </rich:dataTable>
            </rich:panel>
        </a:outputPanel>
        <div class="actionButtons">
            <s:button id="done"
                      value="#{messages['programgoal.create']}"
                      view="/programGoalEdit.xhtml"/>
        </div>
    </ui:define>
</ui:composition>